﻿using System.Windows.Controls;
using Socium.Presentation.TreeViews;

namespace Socium.Persons {
	/// <summary>
	/// Interaction logic for PeopleView.xaml
	/// </summary>
	public partial class PeopleView {
		public PeopleView() {
			InitializeComponent();
		}

		void GroupsOnContextMenuOpening(object sender, ContextMenuEventArgs e) {
			var tree_view_item = TreeViewHelper.GetNearestContainer(e.OriginalSource);
			if (tree_view_item != null) {
				tree_view_item.IsSelected = true;
			}
		}
	}
}